package com.aizuda.boot.modules.common.constant;

/**
 * Redis缓存key常量
 */
public class RedisKeyConstant {
    public static final String SEPARATOR = ":";


    /**
     * 锁key前缀
     */
    public static class LockKeyPrefix {

        public static final String WEB_OFFICE_FILE_PREVIEW = "webOffice:file:preview:";


    }

    /**
     * 业务key前缀
     */
    public static class Business {

        /**
         * 合同审核key前缀
         */
        public static final String CONTRACT_APPROVAL_PREFIX = "contract:approval:";

        /**
         * 合同字段key前缀
         */
        public static final String CONTRACT_FIELD_PREFIX = "contract:field:";

        /**
         * 合同模块字段key前缀
         */
        public static final String CONTRACT_MODULE_PREFIX = "contract:module:";

        /**
         * 合同类型key前缀
         */
        public static final String CONTRACT_TYPE_PREFIX = "contract:type:";

        /**
         * 审批流程key前缀
         */
        public static final String APPROVAL_TYPE_PROCESS_PREFIX = "approval:type:process:";

        /**
         * 协商流程key前缀
         */
        public static final String NEGOTIATION_TYPE_PROCESS_PREFIX = "negotiation:type:process:";

        /**
         * 流程key前缀
         */
        public static final String PROCESS_PREFIX = "process:";


    }


    public static final String LOGIN_USER_PREFIX = "login_users:";

    public static final String SYS_USER_INFO = "sys_user_info";

    public static final String GENERATE_NUMBER_PREFIX = "generate_number:";
}
